<template>
  <div class="person">
    <middle-title title="积极参与活动人员"></middle-title>
    <div class="top">
      <div class="box" v-for="(item, index) in dataList.slice(0, 2)" :key="index">
        <div class="left">{{ index + 1 }}</div>
        <div class="right">
          <div class="rightTop">
            <div class="label">
              {{ item.name }}
            </div>
            <div class="image">
              <el-image style="width: 100%; height: 100%" :src="item.imageUrl" fit="fill" />
            </div>
          </div>
          <div class="blueTitle">
            <span class="normal">共计:</span>
            <span class="value">{{ item.value }}</span>
            <span class="unit">次</span>
          </div>
        </div>
      </div>
    </div>
    <div class="bottom">
      <div class="box" v-for="(item, index) in dataList.slice(2)" :key="index">
        <div class="left">{{ index + 3 }}</div>
        <div class="right">
          <div class="rightTop">
            <div class="label">
              {{ item.name }}
            </div>
            <div class="image">
              <el-image style="width: 100%; height: 100%" :src="item.imageUrl" fit="fill" />
            </div>
          </div>
          <div class="blueTitle">
            <span class="normal">共计:</span>
            <span class="value">{{ item.value }}</span>
            <span class="unit">次</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup>
import { ref } from 'vue'
let dataList = ref([
  { name: '夏云兴', value: 10, imageUrl: '' },
  { name: '夏云兴', value: 10, imageUrl: '' },
  { name: '夏云兴', value: 10, imageUrl: '' },
  { name: '夏云兴', value: 10, imageUrl: '' },
  { name: '夏云兴', value: 10, imageUrl: '' }
])
</script>
<style scoped lang="scss">
.person {
  margin: 10px 0 0 0;
  .top,
  .bottom {
    display: flex;
    justify-content: space-around;
    .box {
      display: flex;
    }
    .left {
      width: 33px;
      height: 33px;
      box-sizing: border-box;
      background: url('@/assets/images/secondpage/rankRed.png') no-repeat;
      background-size: 100% 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      font-family: shsc;
      font-weight: 500;
      font-style: italic;
      color: #f8fcff;
    }
    .right {
      display: flex;
      flex-direction: column;
      align-items: center;
      .rightTop {
        display: flex;
        flex-direction: column;
        padding-left: 8px;
        align-items: center;
        width: 128px;
        height: 155.5px;
        box-sizing: border-box;
        background: url('@/assets/images/secondpage/rankBg.png') no-repeat;
        background-size: 100% 100%;
        .label {
          font-size: 21px;
          font-family: YouSheBiaoTiHei;
          font-weight: 400;
          color: #ffffff;
          background: linear-gradient(0deg, #ffffff 0%, #ffb922 100%);
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
        }
        .image {
          width: 104px;
          height: 126px;
        }
      }

      .blueTitle {
        width: 144px;
        height: 38px;
        box-sizing: border-box;
        background: url('@/assets/images/secondpage/rankLabel.png') no-repeat;
        background-size: 100% 100%;
        text-align: center;
        .normal {
          font-size: 12px;
          font-family: Microsoft YaHei;
          font-weight: bold;
          color: #ffffff;
        }
        .value {
          font-size: 21px;
          font-family: Microsoft YaHei;
          font-weight: bold;
          color: #ffd800;
          margin-left: 5px;
        }
        .unit {
          font-size: 10px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #ffffff;
          margin-left: 2px;
        }
      }
    }
  }
  .bottom {
    // margin-bottom: 40px;
    .left {
      background: url('@/assets/images/secondpage/rankYellow.png') no-repeat;
      background-size: 100% 100%;
    }
  }
  .top {
    padding: 0 60px;
  }
}
</style>
